class Author {

    String lastname
    String firstname

    static constraints = {
        lastname(nullable:false, blank:false, size:1..100)
        firstname(nullable:false, blank:false, size:1..100)
    }

    static hasMany = [publications: Publication]

    public String toString() {
        return "${firstname} ${lastname}"
    }

}
